# print('world','good',sep='+')

# print('2019','2','6',sep='-')

# print('2873220179','qq.com',sep='@')


# print('ending',end=',')
# print('good')


# file_suroce=open('print_train.txt','w', encoding = 'UTF-8')
# print('你真的很棒！',file=file_suroce)
# file_suroce.close()

# with open('print_train.txt', 'w', encoding = 'utf-8') as file:
#     file.write('换一种方式也很棒！')

# with open('log.txt', 'a', encoding = 'utf-8') as file:
#     file.write('日志文件')
    
# file_suroce = open('result.txt', 'a', encoding = 'utf-8')
# # 文件必须提前创建好,否则报错
# print('你真的很棒呀!',file = file_suroce)
# file_suroce.close()

with open('log1.txt', 'r', encoding = 'utf-8') as file:
    print(file.read())
    # file.write('独立')
    
# from pathlib import Path

# path = Path('file_path.txt')  
# path.write_text('随便写点', encoding = 'utf-8')    


# # 输出字符串。
# print('你真的很棒')
# print('aaaaaaa')
# print('12345')

# # 输出变量
# price = 111
# number = 78
# print(price, number)

# # 输出计算式
# print(price + number)